package cn.exrick.xboot.base.vo

import cn.exrick.xboot.core.common.constant.CommonConstant
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.springframework.format.annotation.DateTimeFormat
import java.util.*

@ApiModel("消息vo")
data class MessageVo(

        var id: String? = null,

        @ApiModelProperty("信息类型 1.企业消息")
        var type: Int? = null,

        @ApiModelProperty("消息类型")
        var typeStr: String? = null,

        @ApiModelProperty("企业发送者")
        var enterpriseName: String? = null,

        @ApiModelProperty("标题")
        var title: String? = null,

        @ApiModelProperty("内容")
        var content: String? = null,

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建时间", hidden = true)
        var createTime: Date? = null,

        @ApiModelProperty(value = "用户头像")
        var avatar: String? = CommonConstant.USER_DEFAULT_AVATAR
)